package com.farm.chain;

public class LogHandler extends Handler  {
    @Override
    public void handleRequest(Request request) {
        if (request.getType().equals("LOG")) {
            System.out.println("日期处理器处理请求: " + request.getContent());
        } else if (nextHandler != null) {
            nextHandler.handleRequest(request);
        }
    }
}
